<div class="m-container" ng-controller="teamController">

    <div class="m-team ">
        <ul class="dfr jssa aic orderListHead" active-uli>
            <li ng-click="changeTag(0)" class="dfr aic h100 titleLi c33 active f14">{{teamTags[0]}}</li>
            <li ng-click="changeTag(1)" class="dfr aic h100 titleLi c33 f14">{{teamTags[1]}}</li>
        </ul>
        <div class="myTeam team" ng-show = "teamTag == teamTags[0]">
            <div ng-show="!myTeam" class="cbff noTeam dfc aic jsc wh100 ">
                <div ng-show="!teamModal"  class="dfc aic jsc w100" >
                    <!--<span class="f14 c8C8" >{{status==0?'您还没有组建团队哦':status==1?'您已经加入团队':status==2?'正在申请加入团队':''}}</span>-->
                    <span class="f14 c8C8" >您还没有组建团队</span>
                    <a class="teamActBtn btn_xl_green" ng-click="createTeam()" >创建一个团队</a>
                </div>
                <div ng-show="teamModal"  class="dfc aic jsc w100 teamInuput ">
                    <div class="inputCtrl dfr aic jsc">
                        <!--<div class="focusIcon"></div>-->
                        <input type="text " class="input_normal agentInput wh100 f14 c7f text-center" ng-model="teamName" placeholder="请输入您的团队名称"></div>
                    <a class="teamActBtn btn_xl_green" ng-click="teamModalAct()"  pointer-disable>确认</a>
                </div>

            </div>
            <div ng-show="myTeam" class="myTeam team" >
                <div class="teamName dfr aic  borderB "><span class="f14 c36">{{myTeam.name}}&nbsp;</span><span class="c8C8 f14">(团队ID:{{myTeam.no}})</span></div>
                <div class="teamInfo dfr jsc aifs borderB f14 c8C8" ng-show="!myTeam.baseInfo">暂无数据</div>
                <div class="teamInfo dfc jssa " ng-show="myTeam.baseInfo">
                    <div><span class="c7f">本月销售额:&nbsp;</span>{{myTeam.salesVolume?myTeam.salesVolume:0}}元</div>
                    <div><span class="c7f">本月转发内容给客户:&nbsp;</span>{{myTeam.relayContentTimes?myTeam.relayContentTimes:0}}次</div>
                   <div class="dfr aic">
                       <div class="w42" ><span class="c7f">本月销售冠军:&nbsp;</span>{{myTeam.salesFirst?myTeam.salesFirst:''}}</div>
                       <div ><span class="c7f">本月转发冠军:&nbsp;</span>{{myTeam.relayFirst?myTeam.relayFirst:''}}</div>
                   </div>
                    <div class="dfr aic">
                       <div class="w42"><span class="c7f">我的团队人数:&nbsp;</span>{{myTeam.memberCount?myTeam.memberCount:0}}人</div>
                        <div><span class="c7f">本月赚取健康管理费:&nbsp;</span>{{myTeam.brokerage?myTeam.brokerage:0}}元</div>
                    </div>
                </div>
                <div class="members borderT10" scroll-down2>
                    <div class="teamName dfr aic  f14 c36 borderB">团队成员</div>
                    <li class= "teamInfo dfc aic jsc borderB" ng-show="!memberList">
                        <div class="f14 c8C8">暂无团员</div>
                        <div class="infoMiddle f12 text-center c7f">团员采取邀约制，当您在消息中批准其他健康管家的加入后方可在团员信息中展示</div>
                        <!--<div></div>-->
                    </li>
                    <li class="teamInfo dfr aic jsfs borderB" ng-repeat="item in memberList" ng-show="memberList">
                        <div class="pic60 dfr aic jsc"><img ng-src="{{item.avatar?item.avatar:defaultHeadPic}}"></div>
                        <div class="memberInfo dfc jssa ">
                            <div><span class="cmain">{{item.nickname}}</span>&nbsp;&nbsp;&nbsp;
                                <span class="c7f">本月销售额:&nbsp;</span>{{item.salesVolume?item.salesVolume:0}}元</div>
                            <div><span class="c7f">本月转发内容给客户:&nbsp;</span>{{item.relayContentTimes?item.relayContentTimes:0}}次</div>
                            <div><span class="c7f">本月赚取健康管理费:&nbsp;</span>{{item.brokerage?item.brokerage:0}}元</div>
                        </div>
                    </li>
                </div>
            </div>
        </div>
        <div class="joinTeam team" ng-show = "teamTag == teamTags[1]">
            <div ng-show="!joinedTeam && status!=3 && status!=5 " class="noTeam dfc aic jsc ">
                <div ng-show="!teamModal"  class="dfc aic jsc w100" >
                    <!--这里根据tag-->
                <!--<span class="f14 c03a c8C8">{{status==0?'您还没有加入团队哦':status==3?'您已经组建团队':''}}</span>-->
                    <span class="f14 c03a c8C8">您还没有加入团队哦</span>
                <a class="teamActBtn btn_xl_green" ng-click="joinTeam()" pointer-disable >立即加入团队</a>
                </div>
                <div ng-show="teamModal"  class="dfc aic jsc w100 teamInuput ">
                    <div class="inputCtrl dfr aic jsc">
                        <!--<div class="focusIcon"></div>-->
                        <input type="text " class="input_normal agentInput wh100 f14 c7f text-center" ng-model="teamName" placeholder="请输入您想加入的团队ID"></div>
                    <a class="teamActBtn btn_xl_green" ng-click="teamModalAct()">确认</a>
                </div>
            </div>
            <div ng-show="joinedTeam" class="joinedTeam team">
                <div class="teamName dfr aic  borderB "><span class="f14 c36">{{joinedTeam.name}}&nbsp;</span><span class="c8C8 f14">(团队ID:{{joinedTeam.no}})</span></div>
                <div class="teamInfo dfc jssa  " >
                    <div><span class="c7f">本月销售额:&nbsp;</span>{{joinedTeam.salesVolume?joinedTeam.salesVolume:0}}元</div>
                    <div><span class="c7f">本月转发内容给客户:&nbsp;</span>{{joinedTeam.relayContentTimes?joinedTeam.relayContentTimes:0}}次</div>
                    <div class="dfr aic">
                        <div class="w42" ><span class="c7f">本月销售冠军:&nbsp;</span>{{joinedTeam.salesFirst?joinedTeam.salesFirst:''}}</div>
                        <div ><span class="c7f">本月转发冠军:&nbsp;</span>{{joinedTeam.relayFirst?joinedTeam.relayFirst:''}}</div>
                    </div>
                    <div class="dfr aic">
                        <div class="w42"><span class="c7f">我的团队人数:&nbsp;</span>{{joinedTeam.memberCount?joinedTeam.memberCount:0}}人</div>
                        <div><span class="c7f">本月赚取健康管理费:&nbsp;</span>{{joinedTeam.brokerage?joinedTeam.brokerage:0}}元</div>
                    </div>
                </div>
                <div class="members borderT10">
                    <div class="teamName dfr aic  f14 c36 borderB">我的数据</div>
                    <li class="teamInfo dfr aic jsfs borderB" >
                        <div class="pic60 dfr aic jsc"><img ng-src="{{user.avatar?user.avatar:defaultHeadPic}}"></div>
                        <div class="memberInfo dfc jssa ">
                            <div class="infoMiddle"><span class="c7f">本月销售额:&nbsp;</span>{{myData.salesVolume?myData.salesVolume:0}}元</div>
                            <div><span class="c7f">本月转发内容给客户:&nbsp;</span>{{myData.relayContentTimes?myData.relayContentTimes:0}}次</div>
                            <div><span class="c7f">本月赚取健康管理费:&nbsp;</span>{{myData.brokerage?myData.brokerage:0}}元</div>
                        </div>
                    </li>
                </div>
            </div>
            <div ng-show="status == 3 || status == 5 " class="noTeam dfc aic jsc applying ">
                <img src="common/img/user/applying.png" class="applyImg">
                <span class="c36 f14">正在申请中...</span>
            </div>
        </div>
    </div>

    <!--<div ng-include="'components/user/team/teamModal.html'" ng-show="teamModal"></div>-->
</div>